package com.fs.service.impl;

import java.util.List;

import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.fs.mapper.CommonUserMapper;
import com.fs.domain.CommonUser;
import com.fs.service.ICommonUserService;

/**
 * 客户列表Service业务层处理
 *
 * @author zh
 * @date 2024-10-17
 */
@Service
public class CommonUserServiceImpl implements ICommonUserService {
    @Autowired
    private CommonUserMapper commonUserMapper;

    /**
     * 查询客户列表
     *
     * @param id 客户列表主键
     * @return 客户列表
     */
    @Override
    public CommonUser selectCommonUserById(Long id) {
        return commonUserMapper.selectCommonUserById(id);
    }

    /**
     * 查询客户列表列表
     *
     * @param commonUser 客户列表
     * @return 客户列表
     */
    @Override
    public List<CommonUser> selectCommonUserList(CommonUser commonUser) {
        return commonUserMapper.selectCommonUserList(commonUser);
    }

    /**
     * 修改用户冻结状态并添加冻结原因
     *
     * @param commonUser 用户信息
     * @return 结果
     */
    @Override
    public int updateFreezeStatusAndReason(CommonUser commonUser) {
        return commonUserMapper.updateFreezeStatusAndReason(commonUser);
    }
}
